# Contributor: Sam Stuewe <samuel.stuewe@gmail.com>
# Maintainer: Sam Stuewe <samuel.stuewe@gmail.com>
pkgname=otf-atkinson-hyperlegible
pkgver=2020.0514
pkgrel=0
pkgdesc="Font focused on improved readability"
url="https://www.brailleinstitute.org/freefont"
license="custom"
subpackages="$pkgname-doc"
arch="noarch"
options="!check" # no test suite
source="https://www.brailleinstitute.org/wp-content/uploads/atkinson-hyperlegible-font/Atkinson-Hyperlegible-Font-Print-and-Web-${pkgver/./-}.zip
	LICENSE.pdf::https://www.brailleinstitute.org/wp-content/uploads/2020/11/Atkinson-Hyperlegible-Font-License-2020-1104.pdf"

package() {
	cd "$srcdir/Atkinson-Hyperlegible-Font-Print-and-Web-${pkgver/./-}/Print Fonts"

	local file; for file in *.otf; do
		install -Dm644 "$file" \
			"$pkgdir"/usr/share/fonts/opentype/atkinson-hyperlegible/"$file"
	done

	install -Dm644 "$srcdir/LICENSE.pdf" "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE.pdf
}

sha512sums="869e4a477caac906731494daa6db216f621fd75231aeb94053a412ff1c3752726c873895a785b138d3a74dc721a06925b791ccf1a3cdaddd52edc99c4188a0bd  Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514.zip
2d81fa4e4ac09490e9d9f8d8b8922a8ffc8d2568994147dfea713259f210e90883c0353f13be05d0e979ca99313b136a1021199adec863cf9012a52928403f54  LICENSE.pdf"
